import { FC } from "react";


interface AnswerButtonProps {
    onYes: () => void;
    onNo: () => void;
}

const AnswerButton:FC<AnswerButtonProps> = ({ onYes, onNo }) => {
  return (
    <>
      <button onClick={onYes}>是的！</button>

      <button onClick={onNo}>不是！</button>
    </>
  );
}



export default AnswerButton;